/**
 * @file ngtypes.h
 * @author Suk Robert Koh (srkoh87z@gmail.com)
 *
 * @brief Holds type definitions for cross-platform support
 */

#ifndef NGTYPES_H_
#define NGTYPES_H_

#define NGINE_MSG_CONNECT		200
#define	NGINE_MSG_DISCONNECT	201

#ifdef WIN32
#include <windows.h>
#else
#define DEFAULT_BUF_SIZE	512

#define TRUE	1
#define FALSE	0

#define INVALID_SOCKET	(~0)
#define SOCKET_ERROR	(-1)
#define SOCKADDR_IN		struct sockaddr_in

typedef int				SOCKET;
typedef bool			BOOL;
typedef unsigned char	BYTE;
typedef unsigned short	WORD;
typedef unsigned long	DWORD;

#define closesocket(s)	close(s);
#endif

#endif /* NGTYPES_H_ */
